﻿using Core.Framework.Model.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace Core.DataAccess.Model.Project.Comment
{
    /// <summary>
    /// 评论列表
    /// </summary>
    public partial class CommentList
    {
        public int Id { get; set; }
        public string ProjectToken { get; set; }
        public long UserKey { get; set; }
        public long InformationKey { get; set; }
        public string Content { get; set; }
        public string Relevant { get; set; }
        public string Extend { get; set; }
        public bool Check { get; set; }

        /// <summary>
        /// 自定义分类
        /// 用于区分不同模块的评论内容
        /// [info - 信息系统]
        /// [shop - 电商系统]
        /// </summary>
        public string Type { get; set; }

        [NotMapped]
        public Reply Reply { get; set; }

        [NotMapped]
        public List<CommentAttribute> CommentAttributes { get; set; }

        public DateTime? RegTime { get; set; }
    }

    public class Reply
    {
        public List<CommentReply> Date { get; set; }
        public Pagination Pagination { get; set; }
    }
}
